package com.ruoyi.school.service;

import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.school.domain.PacDanwei;
import com.ruoyi.school.domain.PacTeacher;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.school.domain.dto.ImportTeacherInfo;

import java.util.List;

/**
* @author jeremylin
* @description 针对表【pac_teacher(教师表)】的数据库操作Service
* @createDate 2025-05-27 02:52:40
*/
public interface PacTeacherService extends IService<PacTeacher> {

    /**
     * 获得我的老师的信息
     * @return
     */
    SysUser getMyTeacherInfo();

    /**
     * 根据ids 获取老师信息
     * @param teacherIds
     * @return
     */
    List<PacTeacher> getTeacherListByIds(List<Integer> teacherIds);

    List<PacTeacher> getTeacherListByUserIds(List<Integer> teacherIds);

    /**
     * 获取工号获取老师信息
     * @param teacherNum
     * @return
     */
    PacTeacher getOneByTeaNum(String teacherNum);

    /**
     * 根据用户id查询
     * @param userId
     * @return
     */
    PacTeacher getByUserId(Long userId);

    /**
     * 根据用户id删除老师
     * @param userIds
     */
    void deleteTeacherByUserIds(Long[] userIds);

    /**
     * 通过班级id，找到学业老师
     * @param classId
     * @return
     */
    PacTeacher getAcademicTeacherInfo(Long classId);

    /**
     * 获取学生的所有老师
     * @param stuId
     * @return
     */
    List<PacTeacher> getStuAllTeacher(Integer stuId);

    List<ImportTeacherInfo> selectList();

    /**
     *
     * @param teacherName
     * @return
     */
    Long getIdByName(String teacherName);
}
